package com.wenzheng.mybatisplus.configuration;

import com.wenzheng.mybatisplus.service.*;
import com.wenzheng.mybatisplus.service.impl.*;
import org.springframework.boot.autoconfigure.condition.*;
import org.springframework.context.annotation.*;

@Configuration
@ConditionalOnClass(BaseBatchService.class)
public class BaseBatchServiceAutoConfiguration {
	/**
	 * // 当容器中没有指定Bean的情况下，自动配置PersonService类
	 */
    @Bean
    @ConditionalOnMissingBean(BaseBatchService.class)
    public <T> BaseBatchService<T> batchServiceService(){
	    return new BaseBatchServiceImpl<>();
    }

}
